package com.feicheng.common.task;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.feicheng.common.constant.Constant;
import com.feicheng.common.mqtt.MqttOutboundChannel;
import com.feicheng.common.mqtt.MsgFactory;
import com.feicheng.persistence.entity.Amenjin;
import com.feicheng.persistence.mapper.AkechengskjlMapper;
import com.feicheng.persistence.model.SkjlModel;
import com.feicheng.persistence.service.IAclientbmService;
import com.feicheng.persistence.service.IAkechengskjlService;
import com.feicheng.service.a.FMjService;
import com.feicheng.service.impl.FMjConnectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Component
public class MjmdTask {

    @Autowired
    FMjConnectionService mjConnectionService;


    @Scheduled(cron = "0 0 0 * * ?") // cron 表达式：秒 分 时 日 月 周
    public void runDzDailyTask() {
        mjConnectionService.runDzDailyTask();
    }
}
